import React, { Component } from 'react'

export class Main extends Component {
  render() {
    const{list ,leftid}=this.props
    let newobj=list.find((item=>{
    return  item.id===leftid
    }))
    return (
      <div className='main'>
    
      <p>{ newobj ? newobj.cont:'暂无数据'}</p>
        {
          // list[leftid].title
       }
    
  
  </div>
    )}
}

export default Main